#include <iostream>
#include <string>

using namespace std;

struct Student {
    string name;
    int age;
    int score;
};

void printStudent(const Student& stu) {
    // stu.name = "Jerry"; // error
    cout << stu.name << " " << stu.age << " " << stu.score << endl;
}

void printStudent2(const Student* stu) {
    // stu->name = "Jerry"; // error
    cout << stu->name << " " << stu->age << " " << stu->score << endl;
}

int main() {
    struct Student stu = {"Tom", 18, 100};
    printStudent(stu);

    return 0;
}
